// |**| Opcon|OperationMango|**|Opcon|OperationMango|**|
// |**| Source Code for the FPS Operation Mango     |**|
// |**| Opcon|OperationMango|**|Opcon|OperationMango|**|

using System;
using OpenTK;
using OpenTK.Graphics;
using OpenTK.Graphics.OpenGL;

namespace OperationMango
{


	public class Polygon
	{

		protected Vertex[] vertices;
		protected int length;
		
		public Polygon (int l)
		{
			length = l;
			vertices = new Vertex[length];
		}
		
		public void SetVertex (System.Drawing.Color color, Vector3 position, int index)
		{
			vertices[index].Color = color;
			vertices[index].Position = position;
		}
		
		public System.Drawing.Color GetColor (int index)
		{
			return vertices[index].Color;
		}
		
		public Vector3 GetPosition (int index)
		{
			return vertices[index].Position;
		}
	}
}
